//app.js
App({
  onLaunch: function () {
    // 登录
    wx.login({
      success: res => {
        // 发送 res.code 到后台换取 openId, sessionKey, unionId
        this.globalData.code=res.code;
      }
    })
    
  },
  globalData: {
    userInfo: null,
    code:'',
    baseUrl:'http://nideshop.bluej.cn/api/',
    collectIdArr:[],
    curCate:0,
  }
})